/*
 * @Descripttion: 
 * @version: 
 * @Author: 穆宏宇
 * @Date: 2020-10-29 19:57:34
 * @LastEditors: 穆宏宇
 * @LastEditTime: 2020-11-26 16:01:46
 */
function formatStatus(row, column) {
  const item = row[column.property]
  if (item === '0') {
    return '否'
  }
  else if (item === '1') {
    return '是'
  }
  return '未知'
}
export default [
  {
    type: 'index',
    minWidth: '50',
    label: ''
  },
  {
    prop: 'branchName',
    minWidth: '150',
    label: '采购分支',
  },
  {
    prop: 'purchaseTypeName',
    minWidth: '150',
    label: '采购方式'
  },
  // {
  //   prop: 'purchaseMethodName',
  //   minWidth: '150',
  //   label: '采购类型'
  // },
  {
    prop: 'budgetCeilLimit',
    minWidth: '150',
    label: '委托预算总上限'
  },
  {
    prop: 'budgetLowerLimit',
    minWidth: '150',
    label: '委托预算总下限'
  },
  {
    prop: 'showDay',
    minWidth: '100',
    label: '公示天数'
  },
  {
    prop: 'status',
    minWidth: '80',
    label: '是否有效',
    formatter: formatStatus
  },
  {
    prop: 'sortValue',
    minWidth: '80',
    label: '排序'
  },
  {
    fixed: 'right',
    minWidth: '150',
    label: '操作',
    slotName: 'operation'
  }
]
